package DB_Manage;

import java.util.Date;
import scheduler.AuthenticationPair;
import scheduler.IdentifierPair;

/**
 * This class is a basic data object for scrape job data.
 * @author Johann Jungbauer
 */
public class JobData {
    private String _BillingSiteRef;
    private Date _LastRunDate;
    private Date _LastStatementDate;
    private float _LastStatementTotal;
    private IdentifierPair _IdentifierPairs[] = new IdentifierPair[5];
    private AuthenticationPair _AuthenticationPairs[] = new AuthenticationPair[5];
    private String _Status;
    private String _LatestResult;
    
    public JobData(String billingRef)
    {
        setBillingSiteRef(billingRef);
    }
    
    private void setBillingSiteRef(String billingRef)
    {
        _BillingSiteRef = billingRef;
    }
    
    public String getBillingSiteRef()
    {
        return _BillingSiteRef;
    }
    
    public Date getLastRunDate()
    {
        return _LastRunDate;
    }
    public Date getLastStatementDate()
    {
        return _LastStatementDate;
    }
    public float getLastStatementTotal()
    {
        return _LastStatementTotal;
    }
    public IdentifierPair[] getIdentifierPairs()
    {
        return _IdentifierPairs;
    }
    public AuthenticationPair[] getAuthenticationPairs()
    {
        return _AuthenticationPairs;
    }
    public String getStatus()
    {
        return _Status;
    }
    public String getLatestResult()
    {
        return _LatestResult;
    }
    
    public void setLastRunDate(Date date)
    {
        _LastRunDate = date;
    }
    public void setLastStatementDate(Date date)
    {
        _LastStatementDate = date;
    }
    public void setLastStatementTotal(float total)
    {
        _LastStatementTotal = total;
    }
    public void setIdentifierPairs(IdentifierPair[] idPairs)
    {
        _IdentifierPairs = idPairs;
    }
    public void setAuthenticationPairs(AuthenticationPair[] authPairs)
    {
        _AuthenticationPairs = authPairs;
    }
    public void setStatus(String status)
    {
        _Status = status;
    }
    
    public void setLatestResult(String result)
    {
        _LatestResult = result;
    }
}
